<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 里面的拼接单引号 -->
        <h1 v-text="mydata.msg+'呵呵'"></h1>
        <!-- <p>你好</p> -->
        <p v-text="mydata.node"></p>
        <!-- 你好 -->
        <p v-html="mydata.node"></p>
        <p v-cloak>{{mydata.msg}}</p>
        <p v-show="mydata.bool">呵呵</p>
        <p v-if="mydata.bool">呵呵</p>

        <div>今天有雨吗？</div>
        <div v-if="text=='有'">有，带上</div>
        <div v-else-if="text=='没有'">没有，不带</div>
        <div v-else="text=='不确定'">不确定，带上吧</div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
               mydata:{
                msg:"今天你学习了吗？",
                node:"<p>你好</p>",
                bool:true
               },
               text:"有"
            }
        })

    
    </script>
    
</body>
</html>